/*
 *    Copyright (c) 2018-2025, cloud All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: cloud
 */

package com.fuyao.cloud.message.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;


/**
 * 消息分类
 *
 * @author liyue
 * @date 2022-04-22 17:27:25
 */
@Data
@TableName("fy_message_cti")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "消息分类")
public class MessageCti extends Model<MessageCti> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键Id
     */
    @TableId
    @ApiModelProperty(value="主键Id")
    private Long id;

    /**
     * 租户ID
     */
    @ApiModelProperty(value="租户ID")
    private Long tenantId;

    /**
     * 单位、部门ID
     */
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value="单位、部门ID")
    private Long deptId;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value="部门全名称")
    private String deptFullname;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value="创建人")
    private String createBy;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value="创建人ID")
    private Long createId;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value="创建时间")
    private LocalDateTime createTime;

    /**
     * 修改人
     */
    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty(value="修改人")
    private String updateBy;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty(value="修改时间")
    private LocalDateTime updateTime;

    /**
     * 删除标记,1:已删除,0:正常
     */
    @TableLogic
    @ApiModelProperty(value="删除标记,1:已删除,0:正常")
    private String delFlag;

    /**
     * 所属父类的ID
     */
    @ApiModelProperty(value = "所属父类的ID")
    private Long parentId;

    /**
     * 所属父类名称
     */
    @ApiModelProperty(value = "所属父类名称")
    private String parentName;

    /**
     * 分类名称
     */
    @ApiModelProperty(value = "分类名称")
    private String name;

    /**
     * 分类编码
     */
    @ApiModelProperty(value = "分类编码")
    private String code;

    /**
     * 分类全名称
     */
    @ApiModelProperty(value = "分类全名称")
    private String fullname;

    /**
     * 分类全编码
     */
    @ApiModelProperty(value = "分类全编码")
    private String fullcode;

}
